package com.nlx.notes.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("gold_sale_record")
public class GoldSaleRecordEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 购买渠道
     */
    private String channel;

    /**
     *
     */
    private BigDecimal weight;

    /**
     *
     */
    private BigDecimal buyTotalPrice;

    private BigDecimal saleTotalPrice;

    /**
     *
     */
    private BigDecimal buyUnitPrice;

    private BigDecimal saleUnitPrice;

    /**
     * 是否存在手续费，yes-是，false-不存在
     */
    private String haveFee;

    /**
     * 手续费
     */
    private BigDecimal feeRatio;

    private BigDecimal fee;

    private BigDecimal earnings;

    private BigDecimal profit;

    private Long goldPurchaseId;

    /**
     *
     */
    private LocalDate saleDate;


    private Long userId;

    /**
     *
     */
    private String remark;

    /**
     *
     */
    private LocalDateTime createdTime;

    /**
     *
     */
    private LocalDateTime updatedTime;

    private int delFlag;

}
